page.tsx 1.1 KB

123456789101112131415161718192021222324252627282930
  1. import { getLocalizedMdx } from "@/shared/lib/mdx/load-mdx";
  2. import { Typography } from "@/components/ui/typography";
  3. type PageProps = {
  4. params: Promise<{ locale: string }>;
  5. };
  6. export default async function PrivacyPolicyPage({ params }: PageProps) {
  7. const { locale } = await params;
  8. const content = await getLocalizedMdx("privacy-policy", locale);
  9. return (
  10. <div className="bg-muted/50 py-12">
  11. <div className="container mx-auto max-w-4xl px-4">
  12. <header className="mb-10 text-center">
  13. <Typography className="mb-2 text-3xl md:text-4xl" variant="h1">
  14. {locale === "fr" ? "Politique de Confidentialité" : "Privacy Policy"}
  15. </Typography>
  16. <p className="text-muted-foreground text-base md:text-lg">
  17. {locale === "fr"
  18. ? "Voici comment nous traitons vos données personnelles."
  19. : "How we handle your personal data at Workout Cool."}
  20. </p>
  21. </header>
  22. <div className="prose prose-neutral max-w-none dark:prose-invert">{content}</div>
  23. </div>
  24. </div>
  25. );
  26. }